﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using App.Models;

namespace App.Views.ViewModels
{
#region "冷藏服务记录模型"
    public class RefriServiceEditViewModel : UCServicesItemListSelectViewModel
    {
        [Required(ErrorMessage = "*")]
        [DisplayName("死者编号")]
        public string DeadNO { get; set; }

        [Required(ErrorMessage = "*")]
        [DisplayName("冷藏编号")]
        public string RefriNO{get;set;}

        [Required(ErrorMessage = "*")]
        [DisplayName("服务编号")]
        public string ServiceNo{get;set;}

        [Required(ErrorMessage = "*")]
        [DisplayName("冷藏位置")]
        public string CoffinNO{get;set;}

        [DisplayName("入柜时间")]
        public DateTime? EnterTime{get;set;}

        [DisplayName("预计出柜时间")]
        public DateTime? EstimateOutTime{get;set;}

        [DisplayName("实际出柜时间")]
        public DateTime? ActualOutTime { get; set; }

        [DisplayName("冷藏时间(小时)")]
        public int? ServiceHours { get; set; }

        [DisplayName("费用(元)")]
        public decimal? ServiceFees { get; set; }
    }
#endregion

#region  "冷藏柜状态模型"
    public class RefriCoffinStatusViewModel
    {
        public string CoffinNO { get; set; }
        public string CoffinName { get; set; }
        public string Status { get; set; }
        public DateTime? StartTime { get; set; }
        public DateTime? EndTime { get; set; }        
        public string Remark { get; set; }
    }
#endregion
}